package top.yueyazhui.ask_for_leave.service;

import top.yueyazhui.ask_for_leave.dto.AskForLeaveDto;
import top.yueyazhui.ask_for_leave.dto.TaskDto;
import top.yueyazhui.ask_for_leave.entity.User;
import top.yueyazhui.ask_for_leave.model.Response;

import java.io.IOException;
import java.util.List;

public interface AskForLeaveService {

    Response apply(AskForLeaveDto askForLeaveDto);

    List<User> getApproveUserList();

    List<AskForLeaveDto> getPendApproveList();

    void getRealTimeProgressImage(String processInstanceId) throws IOException;

    List<TaskDto> getTaskList();

    Response approve(TaskDto taskDto);

    List<AskForLeaveDto> getHistoryList();
}
